package com.java123.t2.extra;

/**
 * 实体类
 * 
 * @author kevin
 *
 */
public class Student {

	public String stuNo;
	public String name;
	public String sex;

	public Student[] getArray(int len) {
		Student[] stus = new Student[len];
		for (int i = 0; i < len; i++) {
			Student s = new Student();
			s.stuNo = "no." + i;
			s.name = "Name." + i;
			String sex = null;
			if (i % 2 == 0) {
				sex = "女";
			} else {
				sex = "男";
			}
			s.sex = sex;
			stus[i] = s;
		}
		return stus;
	}
}
